<template>
  <div>
    <el-row>
      <el-col :span="4">
        <div class="box">
          <h2>{{oneGroup.groupName}}</h2>
        </div>
      </el-col>
      <el-col :span="1">
        <div style="height: 20px"></div>
      </el-col>
      <el-col :span="19">
        <div class="top" >群名称：{{oneGroup.groupName}}</div>
        <div>
          <el-button type="success" size="mini">保 存</el-button>
          <el-button type="danger" size="mini">解 散</el-button>
          <el-button type="primary" size="mini">聊 天</el-button>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "GroupInformation",
  data() {
    return {
      oneGroup: {}
    }
  },
  created() {
    this.$EventBus.$on('changeColor', (gList) => {
      this.oneGroup = gList;
      this.oneFriend = null
    })
  }
}
</script>

<style scoped>
.top-top{
  background-color: #00afff;
  height: 80px;
  margin: 10px 0 0 10px
}
.top{
  height: 50px;
  padding-left: 10px;
  line-height: 50px;
}
.box{
  position: relative;
  /*width: 100px;*/
  height: 130px;
  background-color: rgba(0,0,0,0.8);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.box h2{
  color: white;
  font-size: 3em;
  text-shadow: 2px 2px pink;
  z-index: 1;
}
.box::before{
  content: "";
  position: absolute;
  width: 200%;
  height: 60%;
  background: linear-gradient(#00ccff,#d500f9);
  animation: rotate 4s linear infinite;
}
.box::after{
  content: "";
  position: absolute;
  background: #0e1538;
  inset: 5px;
  border-radius: 20px;
}

@keyframes rotate {
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}
</style>
